package com.tutu.borrow.service.impl;

import com.tutu.borrow.entity.Borrow;
import com.tutu.borrow.entity.UserBorrowDetail;
import com.tutu.borrow.mapper.BorrowMapper;
import com.tutu.borrow.service.BorrowService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;


/**
 * @Program: SpringCloud
 * @Description:
 * @Author: JK.TuTu
 * @ @Version: 1.0
 * @Create: 2022-12-01 14:19
 **/
@Service
public class BorrowServiceImpl implements BorrowService {

    @Resource
    BorrowMapper mapper;


    /**
     * 通过id查询出借阅信息
     *
     * @param id borrow表id
     * @return
     */
    @Override
    public Borrow getBorrowInfo(int id) {
        Borrow borrowInfo = mapper.getBorrowInfo(id);
        return borrowInfo;
    }
}
